import 'package:flutter/material.dart';
import 'package:leader_help/page/home/main/index.dart';
import 'package:leader_help/page/me/main/me/index.dart';
import 'package:leader_help/page/msg/main/page.dart';
import 'package:leader_help/page/task/main/task/index.dart';
import 'package:get/get_rx/src/rx_types/rx_types.dart';

part 'model.dart';

class TabState {
  //是否展示浮动小模块
  final isShowFloatObs = true.obs;
  set isShowFloat(bool value) {
    isShowFloatObs.value = value;
    isShowAudioFloat = value;
  }

  bool get isShowFloat => isShowFloatObs.value;

  //是否展示语音浮动小模块
  final isShowAudioFloatObs = true.obs;
  set isShowAudioFloat(bool value) => isShowAudioFloatObs.value = value;
  bool get isShowAudioFloat => isShowAudioFloatObs.value;

  final PageController pageController = PageController();

  var currentIndex = 0.obs;

  static var count = 0;

  final items = [
    TabModel(
        icon: 'icon_home_default.png',
        activeIcon: 'icon_home_Selected.png',
        title: '首页'),
    TabModel(
        icon: 'icon_information_default.png',
        activeIcon: 'icon_information_Selected.png',
        title: '企业'),
    TabModel(
        icon: 'icon_notify_default.png',
        activeIcon: 'icon_notify_Selected.png',
        title: '消息'),
    TabModel(
        icon: 'icon_me_default.png',
        activeIcon: 'icon_me_Selected.png',
        title: '我的')
  ];

  final pages = [HomePage(), TaskPage(), MsgPage(), MePage()];
}
